package com.example.test.启动线程.sleepwait;

public  class A implements Runnable {

    @Override
    public void run() {
        synchronized (this) {
            try {
                this.wait(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            System.out.println("睡醒了");
        }
    }
}